<?php
namespace App\Controllers\Home\Page;

use \App\Models\Diary\Diary;

class Index extends \App\Libs\Base\BaseTwigAction
{
    protected function beforeRun() {
        parent::beforeRun();
       // $this->needLogin = TRUE;
    }
	
	public function execute(){
		
		$diary = Diary::findAll();
		
		echo "<pre>";print_r($diary);
		
	}
}
